#!/usr/bin/env python
import time
import Optical_Receiver as receiver

receiver.init()
receiver.description()

time.sleep(1)

# waiting for signal
while not (receiver.get_state()):
  time.sleep(0.01)

print('Pulse received')
